package com.xm.biz.impl;

import com.xm.biz.BanksBiz;
import com.xm.dao.BanksDao;
import com.xm.dao.BannerDao;
import com.xm.dao.impl.BanksDaoImpl;
import com.xm.po.Banks;
import com.xm.util.BaseDao;
import com.xm.util.DButil;

import java.util.List;

/**
 * @author Administrator
 * @date 2020-08-19-11:28
 * @description 银行卡数据操作业务逻辑接口实现类
 */
public class BanksBizImpl implements BanksBiz {
    BanksDao banksDao=new BanksDaoImpl();
    @Override
    public List<Banks> getAll() {
        return banksDao.getAll();
    }

    @Override
    public boolean deleteId(Integer id) {
        return banksDao.deleteById(id);
    }

    @Override
    public boolean update(Banks banks) {
        return banksDao.update(banks);
    }

    @Override
    public Banks findById(Integer id) {
        return banksDao.findById(id);
    }

    @Override
    public boolean insertbank(Banks banks) {
        return banksDao.add(banks);
    }
}
